package Practice;

import java.util.Scanner;

public class Torch {

    public static boolean over(int x,int y,int n){
        if (x >= 0 && x < n && y >= 0 && y < n)
            return true;
        return false;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(),m = sc.nextInt(),k = sc.nextInt();
        int[][] arr = new int[n][n];
        int num = 0;
        for (int i = 0; i < m; i++) {
            int x = sc.nextInt()-1;
            int y = sc.nextInt()-1;
            for (int a = -2; a <= 2; a++) {
                for (int b = -2; b <= 2; b++) {
                    if(Math.abs(a) + Math.abs(b) <= 2 && over(a+x,b+y,n)){
                        arr[x+a][y+b] = 1;
                    }
                }
            }
        }
        if (k!= 0){
            for (int i = 0; i < k; i++) {
                int x = sc.nextInt() - 1;
                int y = sc.nextInt() - 1;
                for (int a = -2; a <= 2; a++) {
                    for (int b = -2; b <= 2; b++) {
                        if (over(x + a, y + b, n)) {
                            arr[x + a][y + b] = 1;
                        }
                    }
                }
            }
        }

        for (int j = 0; j < n; j++) {
            for (int l = 0; l < n; l++) {
                if (arr[j][l] == 0)
                    num++;
            }
        }
        System.out.println(num);
    }
}
